<?php echo $this->render('include/header.phtml');?>

<!--main begin//-->
<DIV id=main>
    <DIV class=conversation-group>
        <H2>修改个人资料</H2>
        <UL class=conversations>
                <DIV class=cbody>
                    <P class=excerpt>

                    <ul class="people" id="family-list">
                    <li id="person_342" class="person-box">
                    <img src="<?php echo $this->headshotUrl;?>" alt="<?php echo $this->nickName;?>" class="avatar" />
                    <span class="heavy"><?php echo $this->nickName;?> (You)</span> 
                    <div class="person-wrap" id="you">
                    <fieldset>
                    <ol>
                    <form action="<?php echo $this->baseUrl ?>/account/updateprofile" enctype="multipart/form-data" method="post">
                    <li>
                        <input type="hidden" name="avatar" value="1"/>
                        <label for="avatar_photo">头像</label> <input class="avatar_select" id="avatar_uploaded_data" name="headshot" size="30" type="file" />
                    </li>
                    </form>
                    </ol>

                    <ol>
                    <form action="<?php echo $this->baseUrl ?>/account/updateprofile" class="person_form" id="edit_person_342" method="post"><div style="margin:0;padding:0"><input name="_method" type="hidden" value="put" /></div>

                    <li>
                    <label for="person_name">昵称</label> <input id="person_name" name="person[nickName]" size="30" type="text" value="<?php echo $this->nickName;?>" /> 
                    </li>

                    <li>
                    <label for="person_realname">真实名称</label> <input id="person_realname" name="person[realName]" size="30" type="text" value="<?php echo $this->realName;?>" /> 
                    </li>

                    <!--<li>
                    <label for="person_email">Email</label> <input id="person_email" name="person[email]" size="30" type="text" value="yangshiqi1089@gmail.com" /> 
                    <a href="#" class="add_email"><img src="/images/icons/tiny/plus.png"/></a>

                    </li>//-->

                    <li class="radio">
                    <fieldset>
                    <label for="person_sex">性别</label>
                    <label class="btn">
                        <input <?php echo(1==$this->sex)?'checked="checked"':'';?> id="person_sex_1" name="person[sex]" type="radio" value="1" /> 男 
                        <input <?php echo(2==$this->sex)?'checked="checked"':'';?> id="person_sex_2" name="person[sex]" type="radio" value="2" /> 女
                    </label>
                    <label class="btn">
                        <input <?php echo(0==$this->sex)?'checked="checked"':'';?> id="person_sex_0" name="person[sex]" type="radio" value="0" /> 保密
                    </label>

                    </fieldset>
                    </li>

                    <li>
                    <label for="person_birthday">生日</label> <input id="person_birthday" name="person[birthday]" size="30" type="text" value="<?php echo $this->birthday;?>" />
                    </li>

                    <li>
                        <label for="person_intro">自我介绍</label> <textarea id="person_intro" name="person[intro]" cols="35" rows="3"><?php echo $this->escape($this->intro);?></textarea>
                    </li>
                    <li>
                    <input id="person_submit" name="commit" type="submit" value="更新" />
                    </li>
                    </ol>
                    </form>

                    </fieldset>

                    </div>

                    </li>
                    </ul>
                    
                    </P>
                </DIV>
        </UL>
    </DIV>
</DIV>
<!--main end//-->


<?php echo $this->render('include/footer.phtml');?>
